home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Prog / N-P / new, interesting TMPL’S < prev    next >
Encoding:
Text File  |  1987-06-12  |  1.8 KB  |  32 lines  |  [TEXT/MPS ]

  1. (Display this in Chicago 12…)
  2.  
  3. Quick note:
  4. -----------
  5. Due to a bug in recent versions of ResEdit, you cannot append to the _end_ of arrays
  6. which include the H### construct in its TMPL.  For ease of entering, I represent RGB
  7. color combinations as H006 as opposed to specifying each component individually as
  8. HWRD’s or HLNG/HWRD.  So, some care is required when entering new data.
  9.  
  10. For example, an ‘mctb’ resource for default menu colors other than black and white
  11. should consist of two entries: one for the default values and one with an ID of -99 as
  12. a list terminator.  You can use N twice in a newly created resource to create two
  13. blank entries (since the insertion point remains before the newly entered data).
  14. However, you can't create one, select the separator line at the _end_ of the resource
  15. and use N again - this’ll hang ResEdit and force you to reboot.
  16.  
  17. So, rule of thumb for current versions of ResEdit - if you have to append to the end
  18. of an array list, insert _before_ the last item and retype the last two items.  This
  19. probably won't make sense until you’ve done it once (and subsequently have hung
  20. your system), so _please_ only edit copies of files, _especially_ if you're playing
  21. around with the System file!
  22.  
  23. RGB colors are represented as three hex words.  Labels with following numbers in
  24. parentheses mean that that value should probably be what’s suggested.  For example,
  25. wctb’s for standard windows always have five color entries, and their PartCode fields
  26. are always numbered 0 to 4, but you have to specify them because of the consistent
  27. format of color tables.  Reserved items don't matter, but ought to be set to 0 for
  28. consistency.
  29.  
  30. These templates were created on the spur of the moment to fill a temporary need,
  31. and by no means should be considered “official” - they’re just a quick’n’dirty hack.
  32.